import { Document } from 'mongoose'

export interface User extends Document {
    readonly _id: string;
    city: string;
    country: string;
    gender: string;
    language: string;
    nickName: string;
    province: string;
    openid: string;
    avatarUrl: string;
    role: string;
    vip: string;
    design: string;
    status: string;
}

export interface UserResponse<T = unknown> {
    code: number;
    data?: T;
    msg: string;
}